package com.df.common.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 日志实体类
 * @author yangjd
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SystemLog implements Serializable {

    @Schema(description = "映射地址")
    private String mapping;

    @Schema(description = "方法名")
    private String method;

    @Schema(description = "参数")
    private String params;

    @Schema(description = "用户")
    private String user;

    @Schema(description = "返回值")
    private Object data;


    @Override
    public String toString() {
        return "{" +
                "mapping: " + mapping +
                ", method: " + method +
                ", params: " + params +
                ", user: " + user +
                ", data: " + data +
                '}';
    }
}